/**
 * Created by liya on 2017/9/25.
 */
//查询商品在仓库的数量
$scope.planNum = function () {
    var materielCode = $scope.searchData.searchCode;
    if (materielCode && $scope.eiptPurchasePlanDetails.planNum) {
        $http.get(contextPath + "/eiptInventory/findTotalNumByMaterielNo", {params: {materielNo: materielCode}}).then(function (data) {
            $scope.eiptPurchasePlanDetails.total = data.data;
        });
    }
};
//计算应购合计数量
$scope.calculation = function () {
    if ($scope.eiptPurchasePlanDetails.planNum !== null && $scope.eiptPurchasePlanDetails.total !== null &&
        $scope.eiptPurchasePlanDetails.onOrderInventory !== null && $scope.eiptPurchasePlanDetails.outOfStock !== null) {
        var planNum = $scope.eiptPurchasePlanDetails.planNum;
        var total = $scope.eiptPurchasePlanDetails.total;
        var onOrderInventory = $scope.eiptPurchasePlanDetails.onOrderInventory;
        var outOfStock = $scope.eiptPurchasePlanDetails.outOfStock;
        $scope.eiptPurchasePlanDetails.totalPurchase = planNum - total - onOrderInventory - outOfStock;
    } else {
        swal({
            title: "提示",
            text: "请完善预计需求量，在途量，库外存量信息",
            confirmButtonText: "确定"
        });
    }
};
//修改
$scope.eiptPurchasePlanDetailsEdit = function () {
    var demoeiptPurchasePlanDetails = '';
    var rowId = $(demoeiptPurchasePlanDetails).jqGrid('getGridParam', 'selarrrow');
    if (rowId.length >= 1) {
        eiptPurchasePlanDetailsService.findOne(rowId).then(function (resp) {
            $scope.eiptPurchasePlanDetails = resp;
            $(eiptPurchasePlanDetailsCreate).modal({backdrop: 'static', keyboard: false});//点击遮罩层不关闭
        });
    } else {
        swal({
            title: "提示",
            text: "请选中一条要修改的数据",
            confirmButtonText: "确定"
        });
    }
};
/*
The sun is setting behind the mountains.
The woman is giving a presentation.
He is looking out the window of his tour bus.
He came to Korea and saw her latest movie.
Kim doesn't know how the movie will end.
The ending of the movie is still a secret.
She wants the movie to have a happy ending.
Unfortunately,much of the world will be polluted.
The movie's story will take place in the future.
The ending of the movie is still a secret.
Even Kim doesn't know how it will end .
But she hopes it will have a happy ending.
She wants people to have hope for a better future.
She wants people to have hope for a better fufure/
Robots will do much of the work.and only the very rich can have a good life.
The movie's story will take place in the future.
She has a large fan club and her movies are very popular.
This is her chance to become a star.
The meeting is scheduled for the day after tomorrow.
Everywhere she goes,her fans want her autograph.
Crossing several time zones causes jet lag.
As you travel around the Earth,the time changes.
The time of day depends on your location on the planet.
Because of the Earth's rotation,the Earth is divided into time zones.
One large country,China,has just one time zone for the whole country.
As you travel around the Earth,the time canges.
The time of day depends on your location on the planet.
Europe and the USare separated by several time zones.
For example,when it's daytime in the US,it's nighttime in China.
It takes 24 hours for the Earth to make a complete rotation.
To know which direction is east or west,watch the Sun.
In fact,there's a 12-hour time difference between Boston and Shanghai.
12-4
Bus number 60 was supposed to come at 8:30.
She wants the rest of the day to ge as usual.
Instruction manuals show us how to putting together or repair things.
In his dream,something is chasing him,so he is running as fast as he can.
The shortes line is the in the middle.
The shirt on the left is more expensive than the shirt on the right.
Many people like to go swimming in the summer because of the hot weather.
Winter is the coldest season because the sun is at its lowest point in the sky.
Autum is wen trees turn many colors and leaves fall to ge ground.
Rainy season usually lasts for one or two months.
The sun is setting behind the mountains.
This person is having a scary dream.
The woman is giving a presentation.
In his dream,something is chasing him,so he is running as fast as he can.
They are looking at a famous painting.
This old man is a tourist.
Fruits and vegetables are examples of healthy foods.
These foods are deep-fried and greasy.
Lemons and grapefruit taste a little sour,so some people don't like them.
Healthy foods are usually natural and don't include dangerous chemicals.
There's a square on either side of the circle.
These people are at a dance party.
He brushes his teeth several times a day.
Heavy rain like this can cause flooding and mudslides.
You always want to go to the same place.
It uses batteries instead of gasoline.
He wants a car he can rely on.
Life isn't the same now as it used to be.
The doctor can x-ray your foot.
I sure hope it isn't broken.
You always want to go to the same place.
You have no imagination.
She suggests that they compromise.
She suggests that they go someplace new this time.
He does't like unpleasant surprises.
You have no imagination.
I'll get you to a hospital as soon as possible.
There's one way to find out if it's broken.
A thief steais things such as purses and wallets.
12-3
From now on I'll try to get to the airport much earlier.
He had to get on a waiting list because other people were also trying to get on the flight.
They are going to invite everyone in the office.
She had to wait three hours for the next flight.
You missed your flight?How did that happen?
How about this weekend?
We don't want her to miss her party.
Friday evening would be better.
It wasn't easy getting on the next flight.
By the time i got there it was too late to get on the flight.
The next flight wasn't for another 3 hours,so it was a long wait.
The traffic was stopped for nearly 15 minutes.
This kind of thing happens a lot lately.Last week i missed a flight too.
He was supposed to be there an hour ago.
The shirt on the left costs less than the one on the right.
The line in the middle is shorter than the other two.
She's giving a presentation at a meeting.
Many people like to go weimming in the summer because of the hot weather.
Autumn is when trees turn many colors and leaves fall to the ground.
Autumn is when trees turn many colors and leaves fail to the ground.
Rainy season is the season when some countries get most of their rainfall.
The shortest of these three lines is the one on the bottom.
The woman is giving a presentation.
She's giving a presentation at a meeting.
They are looking at a famous painting.
The sun is setting behind the mountains.
This old man is a tourist.
11-17
Unfortunately,much of the world will be polluted.
Crossing several time zones causes jet lag.
It depends on how far east or west you travel.
She met the movie's director last year.
The time of day depends on your location on the planet.
Much of the world will be polluted.
She met the movie's director last year.
The movie's story will take place in the future.
The ending of the movie is still a secret.
Even Kim doesn't know how it will end.
But she hopes it will have a happy ending.
She wants people to have hope for a better future.
She wants people to have hope for a better future.
He came to Korea and saw her latest movie.
If the meeting goes well,she'll be in a Hollywood movie.
The meeting is scheduled for the day after tomorrow.
Everywhere she goes,her fans want her autograph.
One large country,China ,has just one time zone for the whole country.
As you travel around the Earth,the time changes.
The time of day depends on your location on the planet.
The Sun travels through the sky from east to west.
It takes 24 hours for the Earth to make a complete rotation.
For example,when it's daytime in the US,it's nighttime in China.
11-16
She didn't get up until 7:00,30 minutes later than usual.
As a result,she didn't have time to cook breakfast for her children.
Then she talked with her friend on the phone as usual.
They both bought new shoes and some things for their kids.
They ate at a little coffee shop along the side of the road.
Kathy bought a new tie for her husband.
Today Kathy and her kids left home early.
It took 15 minutes for them to have breakfast.
The cars were moving very slowly.
Bus No.60 was supposed to come at 8:30.
On most days,the buses come on schedule,but sometimes they don't.
Her car battery was dead,so she had to call for help.
11-12
Lemons and grapefruit taste a little sour,so some people don't like them.
There's square on eigher side of the circle.
I'll be there as fast as I can.
45 minutes late,the delivery man came.
The circle is around the triangle.
Ice is the solid state of water.
Several buses were late yesterday.
Then she talked with her friend on the phone as usual.
He missed his flight because he got on the wrong bus.
Several buses were late yesterday because the traffic was much heavier than usual.
They ate at a little coffee shop along the side of the road.
As a result,it took them longer than usual to get to school.
She never wants to oversleep again!.
Kathy bought a new tie for her husband.
Not one bus came early.
Bus No.60 was supposed to come at 8:30.
He missed his flight because he got on the wrong bus.
Bus No.38 was supposed to come at 8:40,but it was 5 minutes late.
Bus number 60 was supposed to come at 8:30.
On most days,the buses come on schedule,but sometimes they don't.
It took 15 minutes for them to have breakfast.
They had to buy breakfast on their way to school.
As a result,it took them longer than usual to get to school.
They left early because they had to buy breakfast on their way to school.
The cars were moving very slowly.
But this morning it was much worse than usual.
They ate at a little coffee shop along the side of the road.
They left early because they had to buy breakfast on their way to school.
They live in a large apartment building.
He did't go to bed until 12:00;
He went to bed later than usual.
He was watching videos.
I'll be there as fast as i can.
I'll meet you at the bus stop in front of terminal 2.
I'm sorry to be late.
These red peppers are very hot and spicy.
These foods are deep-fried and greasy.
Greasy foods have a lot of calories,so don't eat them if you want to lose weight.
Candies and cakes are sweet because they are made with lots of sugar.
The circle is betwwen two small aquares.
The square is around the triangle.
The circle is on the left of a rectangle.
The triangle is inside the circle.
He brushes his teeth several times a day.
This young boy is brushing his teeth.
These two people are meeting for the first time.
Many people come to work here during the week.
11-13
He didn't go to ted until 12:00.
He went to bed later than usual.
He was watching videos.
I'll be there as fast as i can.
I'll neet you at the bus stop in front of terminal 2.
I'm sorry to be late.
These red peppers are very hot and spicy.
These foods are deep-fried and greasy.
Greasy foods have a lot of calories,so don't eat them if you want to lose weight.
Candies and cakes are sweet because they are made with lots of sugar.
The circle is between two small squares.
The square is around the triangle.
The circle is on the left of a rectangle.
The triangle is inside the circle.
He brushes his teeth several times a day.
This young boy is brushing his teeth.
These two people are meeting for the first time.
Many people come to work here during the week.
As a reslt he missed his flight.
They traffic was much sorse than usual.
On most days,the buses come on schedule,but sometimes they don't.
He didn't notice that it was the wrong bus.
But yesterday it didn't come until 8:40.
Bus number 60 was supposed to come at 8:30.
On most days,the buses come on schedule,but sometimes they don't.
She doesn't want any more surprises.
Her friend was waiting for her at the mall.
She wants the rest of the day go as usual.
They both bought new shoes and some things for their kids.
Kathy doesm't want anything else to go wrong.
After getting a new battery for her car,the engine started.
She wants the rest of the day to go as usual.
Kathy bought a new tie for her husband.
Her car battery was dead,so she had to call for help.
To get a new battery.
They were late because their schools are farther away.
One of her children got to school on time.
The cars were moving very slowly.
Today Kathy and her kids left home early.
As a result,she didn't have time to cook breakfast for her children.
She over slept because she didn't hear her alarm.
The trqffic was much worse than usual.
But this morning it was much worse than usual.
They ate at a little coffee shop along the side of the road.
They left early because they had to buy breakfast on their way to school.
My umbrella wasn't much help either.Still,it was better than nothing.
He ran out into the traffic and a car hit him.
11-8
mid-autumn festival
We will have on impulsive buy ...
Chinese Lunnar New Year
at(point)  on(area) in(during)
grocery store
I normally go shopping buy...
10-2 simple
At 1:30 her friend wanted to go to a fitness center.
They decided to meet at s shopping mall.
It took about 45 minutes to take them to school.
He weighs 220 pounds,which is 100 kilograms.
She is less than five feet tall.
The last bus to the airport left 15 minutes ago,at 8:55;
The Earth is 93 million miles from the Sun.
Australia and a third of Africa are in the southern hemisphefe.
The next bus to the airport is Bus No.38.
The length of one year is about 365 days.
The southrn half is the southern hemisphere.
Bus No.38 has stops at the main train station and the airport.
If the Earth had no tilt at all,there would be no seasons.
In winter,the Earth tilts away from the Sun.
Can it wait until tomorrow?
In history class we learn about the past.
In literature class,we read and study great books and poems.
We learn to write down our ideas and we learn how other think and feel.
If we don't know math,we can't do business or build things.
We learn how to count and how to find the area of different shapes.
Most people enjoy listening to music.
Some people are very in teresting,so we enjoy listening to them.
Early in the morning we can often hear the sound of birds singing.
Many taxi drivers listen to the radio while they drive.
Some people talk too mach so we want them to stop talking.
11-3
He ran out into the traffic and a car hit him.
We use thermometers like this to measure temperature.
This tilt causes the seasons of the year.
They usually worked out three times a week.
Without food and water,we cannot live.
Solids have size and shape.
Sure,I'll help you if i can.
We learn about how our country began and how it has changed.
After driving them to school she returned home.
The woman on the top right is 5 feet 11 inches tall.
The woman weighs less than he does.
There were discounts of up to 50%,so they bought clothes for their kids.
The boy is 20 pounds heavier than the girl.
For the next hour she cleaned the house.
There was a bit sale at one of the stores.
It took them about 45 minutes to get to school.
She got up at 6:30 and cooked breakfast for her family.
The food was good and not very expensive.
After she paid for the food,they ate dinner.
She paid him for the food,and then they ate dinner.
Her headache was gone.
She took some medicine and has a short nap.
They were all hungry,but she didnn't feel like cooking.
After her nap she felt a bit better.
Instead,she decided to go home.
There was a big sale at one of the stores.
They worked out three times a week.
They ate lunch together and then they went shopping.
There was a big sale at one of the stores.
Tey decided to meet at a shopping mall.
It took them about 45 minutes to get to school.
They decided to meet at a shopping mall.
It took about 45 minutes to take them to school.
The girl on the left is very thin.
Her weight is just 70 pounds.
He weighs 220 pounds,which is 100 kilograms.
He weighs 90 pounds,which is about 41 kilograms.
The man on the top left weighs the most.
She weight 90 pounds less than he does.
The man on the top left is the tallest.
The boy on the bottom right is taller than the girl.
He is 6 feet 3 inches tall,which is about 1.9 meters.
The boy on the bottom right is taller than the girl.
He is 3 inches taller than she is .
She is tall,but not as tall as the man on the left.
She'll miss her bus if she doesn't hurry.
Let me check his schedule.
Please have her stay in bed and drink plenty of liquids.
as soon as possible.
Could you get it for me?
She found it in the tathroom.
Do you need anything else?
The volumeof a cube is its length fimes its width times its height.
A cube is a three dimensional object with equal sides.
Water becomes a gas at 100 degrees Celsius,which is its bolling point.
The freezing point of water is 0 degrees Celsius.
We need a place to keep us wet in rainy weather.
Without water,our body doesn't work at all.
Early in the morning we can often hear the sound of birds singing.
In math class we learn about numbers and shapes.
We learn about how our country began and how it has changed.
In science class we learn about our world.
We learn why it is important to take care of the Earth.
The sound of the city are often loud and noisy.
Some drivers honk their horns too much and the noise is awful/
Some people are very interesting,so we enjoy listening to them.
She has a bad sore throat and a headache.
It takes a long time for that light to change.
From now on,I'll be more careful crossing the street.
It's a long walk from the subway to her home.
Lat night she got wet in the rain.
We use thermometers like this to measure temperture.
We use a scale like this to weight things.
We use a cale like this to weight things.
Ice is the solid state of water.
Liquids take the shape of their container,such as this glass.
We need a place to keep us dry in rainy weather.
We need skills to find a good job.
We need water to keep our bodies working.
Daily exercise is a good way to stay in good health.
He is 3 inches taller than she is.
The man on the top left is the heaviest.
45 minutes later,the delivery man came.
Her husband didn't come home until late.
That was good ,because he doesn't like chinese food.
Her kids came home at 5:00.
They were all hungry,but she didn't feel like cooking.
Instead,she decided to order some food.
She ordered some Chinese food.
They were all hungry,but she didn't feel like cooking.
She took some medicine and had a short nap.
They usually worked out three times a week.
But yesterday Kathy had a headache.
She decided not to work out.
Instead,she decided to go home.
Instead,she decided to go home.
She wanted to go to a fitness conter.
There were discounts of up to 50%,so they bought clothes for their kids.
They met in a coffee shop.
Then she talked to a friend on the phone.
She got up at 6:30 and cooked breakfast for her family.
She doesn't weight very much.
The girl is very thin and light.
The man on the top left is the heaviest.
She weight 90 pounds less than he.
She is less than five feet tall.
She is tall,but not as tall as the man on the left.
He is 4 inches taller than she is..
The shot hurt a little,but Lisa didn't mind.
If the Earth's tilt were larger,summers would be hotter.
Let's check that on the internet.
The northerm half is the northern hemisphere.
This is what Lisa did earlier today.
He hlies airplanes to all parts of the world.
Altogether,his lunch cost $5.25.
He was hungry so he also had a salad.
A slice of pizza costs the same as a sandwich.
They always miss him when he is away.
They finally entered the runway at 11:10,which was 5 minutes behind schedule.
From the fate,it took 10 minutes to go to the runway.
He flies airplanes to all parts of the world.
Therefore,the distance between the Earth and the Sun is very important.
In summer,the Earth tilts toward the Sun.
We have to wait until 9:00,which is 10 minutes from now.
Australia and a third of Africa are in the southern hemisphere.
The southern half is the southern hemisphere.
If the Earth were farter from the Sun,our planet would be colder.
If the Earth were closer to the Sun,our planet would be hotter.
Our planet is the 3rd planet from the Sun.
Our solar system has several planets which orbit around it.
If the Earth had no tilt at all,there would be no seasons.
If the Earth's tilt were larger,summers would be hotter.
This is why the seasons are opposite for the northern and southern hemispheres.
The Earth's axis is not perpendicular to the Sun.
The Eart moves in two ways.
It rotates around its axis.
It takes the Earth 24 hours to complete a rotation.
Bus No.38 has a regular schedule.
11-2
What sould happen if the Earth's tilt were different than it is now?
This is why the season are opposite for the northern and southern hemispheres.
When it's summer in Australia it's winter in Europe.
It has the shpe of a sphere,like a ball.
The length of one year is about 365 days.
If the earth were closer to the sun,our planet would be hotter.
Therefore,the distance between the Earth and the Sun is very important.
The Sun is at the center of our solar system.
Or planet is thd 3rd planet from the Sun.
Our solar system has several planets which orbit around it.
If the Earth had no tilt at all,there would be no seasons.
In summer,the Earth tilts toward the Sun.
The Earth's axis is not perpendicular to the Sun.
The Earth moves in two ways.
The axis is a line through its center.
Which bus goes to both the train station and the airport?
During part of the year,the northern hemispere is tilted toward the sun.
Australia and a third of Africa are in the southern hemisphere.
It is tilted at an angle of around 23.5degrees.
This tilt causes the seasons of the year.
If the Earth's tilt were larger,summers would be hotter.
If the Earth were farther from the Sun,our planet would be colder.
The Earth is 93 million miles from the Sun.
If the Earth's tilt were smaller,summers would be cooler.
In winter,the Earth tilts away from the Sun.
It takes about 365 days for the Earth to go around the Sun.
30 kilometers per second.
It takes the Earth 24 hours to complete a rotation.
It has the shape of a sphere,like a ball.
 */